package cn.com.bsoft.cloud.service;

import cn.com.bsoft.cloud.entity.cloud.*;
import cn.com.bsoft.cloud.entity.param.PrescriptionDetailDTO;
import cn.com.bsoft.cloud.entity.param.PrescriptionDetailParam;

import java.util.List;
import java.util.Map;

public interface HisInterface {

    //更新处方表签名字段
    public boolean updateCaSgin(String prescriptionCode , String caSign);
    //添加处方表数据
    public boolean hisSendMessage(Cfmesses cfmesses,String yyid,String prescriptionCode,String telphone);
    //判断预约表中是否存在该预约ID
    public boolean yyidIsExists(String yyid);
    //插入预约表数据
    public boolean insertAppointInformation(Appoint appoint);
    //插入处方明细表
    public boolean cfmxbatchInsert(List<Cfmess> cfmess,String cfid);
    //修改支付状态
    public boolean updatePayStaus(UpdatePayStatus updatePayStatus);
    //查询配送状态
    public int queryDeliveryStatus(String hospitalCode, List prescriptionCode);
    //修改作废状态
    public boolean invalidPrescription(String hospitalCode,List prescriptionCode);
    //查询处方是否存在
    public int prescriptionIsExists(String hospitalCode,List prescriptionCode);
    //查询处方是否支付
    public int prescriptionIsPayed(String hospitalCode,List prescriptionCode);
    //是否存在预约记录
    public boolean yyidsfcz(String yyid);
    //查询需要调用医药公司接口的数据集
    public List<master> queryCompanyParam(UpdatePayStatus updatePayStatus);
    //查询医药公司代码
    public String queryCompanyCode(UpdatePayStatus updatePayStatus);
    //查询医药公司的APPid和token
    public Map queryAppIdAndToken(String companyCode);
    //判断处方是否存在
    public int onePrescriptionIsExists(String hospitalCode,String prescriptionCode);
    //判断处方是否作废
    public int prescriptionIsDelete(String hospitalCode,List prescriptionCode);
    //判断处方是否发药
    public int prescriptionIsSend(String hospitalCode,List prescriptionCode);
    //判断是否有到达配送点处方
    public int prescriptionIsArrived(String hisPrescriptionCode,String hospitalCode);
    //查询处方到达配送点信息
    public prescriptionArriveResult prescriptionArrived(String hisPrescriptionCode,String hospitalCode);
    //处方发药给病人
    public boolean sendDrugs(String hospitalCode,List prescriptionCode);

    public List<PrescriptionDetailDTO> queryPrescriptionDetail(PrescriptionDetailParam prescriptionDetail);
}
